import request from '@/utils/request'

// 查询档案影像列表
export function listPersonFile(query) {
    return request({
        url: '/business/personFile/list',
        method: 'get',
        params: query
    })
}

// 查询档案影像详细
export function getPersonFile(id) {
    return request({
        url: '/business/personFile/' + id,
        method: 'get'
    })
}

// 新增档案影像
export function addPersonFile(data) {
    return request({
        url: '/business/personFile',
        method: 'post',
        data: data
    })
}

// 修改档案影像
export function updatePersonFile(data) {
    return request({
        url: '/business/personFile',
        method: 'put',
        data: data
    })
}

// 删除档案影像
export function delPersonFile(id) {
    return request({
        url: '/business/personFile/' + id,
        method: 'delete'
    })
}

export function personFileTree(personId) {
    return request({
        url: '/business/personFile/tree',
        params: {personId},
        method: 'get'
    })
}
